package com.szrt.spring.ch10.student.service.impl;

import javax.annotation.Resource;
import javax.annotation.Resource.AuthenticationType;

import com.szrt.spring.ch10.student.dao.StudentDao;
import com.szrt.spring.ch10.student.service.StudentService;

public class StudentServiceImpl implements StudentService {
	
	
	/**
	 * 使用注解可以省略属性的set和get方法...
	 * 其中name="studentDao"可以省略
	 */
	@Resource(name="studentDao",authenticationType=AuthenticationType.CONTAINER,shareable=true)
	private StudentDao studentDao;
	

	
	

	//@Resource(name="studentDao",authenticationType=AuthenticationType.CONTAINER,shareable=true)
	/*public void setStudentDao(StudentDao studentDao) {
		this.studentDao = studentDao;
	}*/


	@Override
	public void save() {
		
		studentDao.save();
	}





	
	
	
}
